package main

import (
	"fmt"
	"goseckill/rabbitmq/learn-used/rabbitmq"
	"strconv"
	"time"
)

func main() {
	// 输入参数 queueName
	rabbitmq := rabbitmq.NewRabbitMQSimple("Simple")
	for i:=0;i<100;i++{
		rabbitmq.PublishSimple("hello world simple mode " + strconv.Itoa(i))
		time.Sleep(time.Second*1)
		fmt.Println(i)
	}
}